package servlets;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class for Servlet: ToApplet
 *
 */
 public class SaveAlert extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
   static final long serialVersionUID = 1L;
   
    
	
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
     
	 String alertname = request.getParameter("alertname");	
	 String memlimit = request.getParameter("limit");
	 String email = request.getParameter("email");
	 String frequence = request.getParameter("frequence");
	 
	 PrintWriter out = response.getWriter();
	 out.print("<b> Alert saved !</b>");
		
	}  	
	
	
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
	}   	  	    
}
